﻿using System.ComponentModel.DataAnnotations;

namespace BW.Demo.WebApi.Dtos
{
    public class AddTraceabilityDTO
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int Basic_Traceability { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>

        public int Gid { get; set; }

        /// <summary>
        /// 生产批次(整个系统唯一)
        /// </summary>
        [MaxLength(50)]
        public string Batch { get; set; } = string.Empty;

        /// <summary>
        /// 保质期
        /// </summary>
        public int Shelf_life { get; set; }

        /// <summary>
        /// 生产许可证号
        /// </summary>
        [MaxLength(50)]
        public string Productionlicense { get; set; } = string.Empty;

        /// <summary>
        /// 生产企业
        /// </summary>
        [MaxLength(50)]
        public string Production_Enterprise { get; set; } = string.Empty;

        /// <summary>
        /// 信息完善度
        /// </summary>
        public int Information_Completeness { get; set; }

   

        /// <summary>
        /// 产品检验报告图片
        /// </summary>
        [MaxLength(100)]
        public string ProductInspectionReportPath { get; set; } = string.Empty;

      
        /// <summary>
        /// 封面图片
        /// </summary>
        [MaxLength(100)]
        public string CoverImage { get; set; } = string.Empty;
    }
}
